function once(fn) {
  let flag = false
  return function () {
    if (!flag) {
      flag = true
      fn.apply(null, arguments)
    }
  }
}
let pay = once(function (money) {
  console.log("支付了: " + money + "RMB")
})
pay(100, 1222)
pay(100)
